package edu.nf.meituan.model.user;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.nf.db.util.Column;

import java.time.LocalDateTime;


/***
 *  购物车实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Shopping {
    /**
     * 购物车id
     */
    @Column("shopping_id")
    private Integer shoppingId;
    /**
     * 用户id
     */
    @Column("u_id")
    private Integer userId;
    /**
     * 商品id
     */
    @Column("item_id")
    private Integer itemId;
    /**
     * 商家id
     */
    @Column("shop_id")
    private Integer shopId;
    /**
     * 商品数量
     */
    @Column("item_num")
    private Integer itemNum;
    /**
     * 购物车状态
     */
    @Column("shopping_status")
    private Integer shoppingStatus;
    /**
     * 创建时间
     */
    @Column("shopping_create_at")
    private LocalDateTime shoppingCreatedAt;
}
